package com.woniuxy.store.client.param.couponParam;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class AddCouponParams {
    @NotNull
    @Min(1)
    private Integer couponTypeId;
    @NotNull
    private String couponName;
    @NotNull
    private BigDecimal couponFace;
    @NotNull
    private BigDecimal couponCondition;
    @NotNull
    private Date couponStartTime;
    @NotNull
    private Date couponEndTime;
    @NotNull
    @Min(0)
    private Integer couponGrant;
    @NotNull
    @Min(0)
    private Integer couponInventory;
}
